package com.springboot.lock.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;

/**
 * @Author: TongRui乀
 * @Date: 2020-08-05 19:09
 * @description：
 */
@Configuration
public class JedisConfig {

    @Autowired
    private Environment environment;

    @Bean
    public RedisClient redisClient(){
        return new RedisClient(environment);
    }

}
